package com.springboot.frame.starter.csrf;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface CsrfTokenRepository {

  CsrfToken generateToken(HttpServletRequest request);

  void saveToken(CsrfToken token, HttpServletRequest request, HttpServletResponse response);

  CsrfToken loadToken(HttpServletRequest request);

}
